import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/Property'
  },
  {
    path: '/Property',
    component: () => import(/* webpackChunkName: "group-property" */ '@/views/Property')
  },
  {
    path: '/Community',
    component: () => import(/* webpackChunkName: "group-community" */ '@/views/Community')
  },
  {
    path: '/Life',
    component: () => import(/* webpackChunkName: "group-life" */ '@/views/Life')
  },
  {
    path: '/Mine',
    component: () => import(/* webpackChunkName: "group-mine" */ '@/views/Mine')
  },
  {
    path: '/LifeListItemDetail/:id',
    component: () => import(/* webpackChunkName: "group-life" */ '@/components/Life/LifeListItemDetail')
  },
  {
    path: '/chatcom',
    component: () => import(/* webpackChunkName: "group-community" */ '@/components/Community/Chatcom')
  },
  {
    path: '/chathome',
    component: () => import(/* webpackChunkName: "group-community" */ '@/components/Community/Chathome')
  },
  {
    path: '/allmember',
    component: () => import(/* webpackChunkName: "group-community" */ '@/components/Community/Allmember')
  },
  {
    path: '/NoticeDetail',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/NoticeDetail')
  }, {
    path: '/LifePay',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/LifePay')
  },
  {
    path: '/FunctionDetail',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/FunctionDetail')
  },
  {
    path: '/Visitors',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/Visitors')
  },
  {
    path: '/PayHistory',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/PayHistory')
  },
  {
    path: '/QuestionNaire',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/QuestionNaire')
  },
  {
    path: '/SmartHome',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/SmartHome')
  },
  {
    path: '/CommonHelp',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/CommonHelp')
  },
  {
    path: '/Repair',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/Repair')
  },
  {
    path: '/VisitorRecord',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/VisitorRecord')
  },
  {
    path: '/ComplainAppre',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/ComplainAppre')
  },
  {
    path: '/ActiveRegistration',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/ActiveRegistration')
  },
  {
    path: '/RepairRecord',
    component: () => import(/* webpackChunkName: "group-property" */ '@/components/Property/RepairRecord')
  },
  {
    path: '/Setting',
    component: () => import(/* webpackChunkName: "group-mine" */ '@/components/Mine/Setting')
  },
  {
    path: '/Myorder',
    component: () => import(/* webpackChunkName: "group-mine" */ '@/components/Mine/Myorder')
  },
  {
    path: '/Mygroupby',
    component: () => import(/* webpackChunkName: "group-mine" */ '@/components/Mine/Mygroupby')
  },
  {
    path: '/Mybill',
    component: () => import(/* webpackChunkName: "group-mine" */ '@/components/Mine/Mybill')
  },
  {
    path: '/Mypost',
    component: () => import(/* webpackChunkName: "group-mine" */ '@/components/Mine/Mypost')
  },
  {
    path: '/Myguest',
    component: () => import(/* webpackChunkName: "group-mine" */ '@/components/Mine/Myguest')
  },
  {
    path: '/Myreceipt',
    component: () => import(/* webpackChunkName: "group-mine" */ '@/components/Mine/Myreceipt')
  },
  {
    path: '/Myinteract',
    component: () => import(/* webpackChunkName: "group-mine" */ '@/components/Mine/Myinteract')
  },
  {
    path: '/Myhome',
    component: () => import(/* webpackChunkName: "group-mine" */ '@/components/Mine/Myhome')
  },
  {
    path: '/Modifyinform',
    component: () => import(/* webpackChunkName: "group-mine" */ '@/components/Mine/Modifyinform')
  }
]

const router = new VueRouter({
  // mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
